package com.anxinr.pojo.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 用户
 *
 * @author anxinr
 */
@Data
public class UserDTO implements Serializable {
    @ApiModelProperty("id")
    private Long id ;
    @ApiModelProperty("用户名称")
    private String realName ;
    @NotNull(message = "账号不能为空")
    @ApiModelProperty("账号名称")
    private String userName ;
    @NotNull(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String password ;
    @ApiModelProperty("手机号码")
    private String phone ;
    @ApiModelProperty("是否管理员（店长）")
    private Integer isAdmin ;
    @TableField(exist = false)
    @ApiModelProperty("用户token信息")
    private String token ;
}
